import request from '@/utils/request'
// import { AxiosResponse } from 'axios'
// 接口单独提取到公共模块
import { ILoginInfo } from './types/common'

// interface ResponseData<T=any>{
//   status:number,
//   msg:string,
//   data:T
// }

export const getLoginInfo = ():Promise<ILoginInfo> => {
  return request<ILoginInfo>({
    method: 'GET',
    url: '/login/info'
  })
  // return request.get<ResponseData<ILoginInfo>>('/login/info')
  // return request.get<ResponseData<ILoginInfo>>('/login/info').then((res) => {
  //   return res.data
  // })
}
